package org.shop.dao;

import java.util.List;
import java.util.Map;
import org.shop.dao.base.BaseDaoMapper;
import org.shop.entity.AnswerInfo;

public interface AnswerInfoMapper extends BaseDaoMapper<AnswerInfo, Long> {
	
	/**
	 * app根据帖子Id获取贴子热门留言列表
	 * @param params
	 * @return
	 */
	public List<Map<String, Object>> getPostHotAnswerList(Map<String, Object> params);
	
	/**
	 * app 根据帖子id获取热门回复留言列表
	 * @param paramMap
	 * @return
	 */
	public List<Map<String,Object>> getReplyPostAnswerList(Map<String,Object> paramMap);
	
	/**
	 * app根据帖子Id获取贴子留言列表
	 * @param params
	 * @return
	 */
	public List<Map<String, Object>> getPostAnswerList(Map<String, Object> params);
	
	/**
	 * app根据postId获取评论量
	 * @param params
	 * @return
	 */
	public int getAnswerCount(Map<String, Object> params);
}